#ifndef __DKMAP_H__
#define __DKMAP_H__

#include "cocos2d.h"
#include "DKActor.h"

#define dkm(level, scene) DKMap::create(level, scene)

class DKMap : public cocos2d::CCObject
{

private:
	void initialize(int **map);

public:
	static DKMap *create(int level, CCObject *scene);
	DKMap(int level, CCObject *scene);
	~DKMap();

	void ProcessUserInput(CCPoint inputPoint);
	DKActor * GetActorAt(DKPoint point);
	void startActors();
	void addActor(DKActor *actor);

	cocos2d::CCArray* Actors;
	DKActor *TheMan;
	CCObject *scene;
	int XMap, YMap;
};

#endif